const state = {
  allApps: [
    { name: '采购系统', icon: require('@/assets/app-icons/purchase.png'), route: '/purchase' },
    { name: '维修系统', icon: require('@/assets/app-icons/maintenance.png'), route: '/maintenance' },
    // 其他应用...
  ],
  myApps: [
    { name: '采购系统', icon: require('@/assets/app-icons/purchase.png'), route: '/purchase' },
    { name: '维修系统', icon: require('@/assets/app-icons/maintenance.png'), route: '/maintenance' },
    { name: '流程审批', icon: require('@/assets/app-icons/flow.png'), route: '/flow' },
    { name: '设备管理', icon: require('@/assets/app-icons/equipment.png'), route: '/equipment' }
  ]
}

const mutations = {
  SET_MY_APPS(state, apps) {
    state.myApps = apps
  }
}

export default {
  namespaced: true,
  state,
  mutations
}